import {
  AppstoreOutlined,
  MenuUnfoldOutlined,
  MenuFoldOutlined,
  ToolOutlined,
  DesktopOutlined,
  ContainerOutlined,
	MailOutlined,
	StockOutlined,
	BarChartOutlined,
	PieChartOutlined,
  HddOutlined
} from "@ant-design/icons";
const home = <AppstoreOutlined />
const appstore = <MenuUnfoldOutlined />
const bars = <MenuFoldOutlined />
const tool = <ToolOutlined />
const user = <DesktopOutlined />
const area_chart = <ContainerOutlined />
const safety = <MailOutlined /> 
const line_chart = <StockOutlined />
const bar_chart = <BarChartOutlined />
const pie_chart = <PieChartOutlined />
const windows=<HddOutlined />
const menuList = [
  {
    title: '首页', // 菜单标题名称
    key: '/home', // 对应的path
    icon: home, // 图标名称
    isPublic: true, // 公开的
  },
  {
    title: '商品',
    key: '/products',
    icon: appstore,
    children: [ // 子菜单列表
      {
        title: '品类管理',
        key: '/category',
        icon: bars
      },
      {
        title: '商品管理',
        key: '/product',
        icon: tool
      },
    ]
  },

  {
    title: '用户管理',
    key: '/user',
    icon: user
  },
  {
    title: '角色管理',
    key: '/role',
    icon: safety,
  },

  {
    title: '图形图表',
    key: '/charts',
    icon: area_chart,
    children: [
      {
        title: '柱形图',
        key: '/charts/bar',
        icon: bar_chart
      },
      {
        title: '折线图',
        key: '/charts/line',
        icon: line_chart
      },
      {
        title: '饼图',
        key: '/charts/pie',
        icon: pie_chart
      },
    ]
  },

  {
    title: '订单管理',
    key: '/order',
    icon: windows,
  },
]

export default menuList